home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / 422mods.zip / SANTA01.422 < prev    next >
Text File  |  1993-02-17  |  4KB  |  122 lines

  1. 1SANTA01.422
  2. Santa Claus #3 @25457 2[4Dungeon Keeper2]0
  3. Sun Feb 14 16:32:05 1993
  4. ┌────────────────────────────────────────────────────────────────────────────┐
  5. │ Mod Name: SANTA01.422           Mod Author: Santa Claus                    │
  6. │ Difficulty: Very Easy 1/10      Date: 02/13/93  08:41 pm                   │
  7. │ WWIV Version: 4.22                                                         │
  8. │ Description: List User Name AND Title in Scan Title.                       │
  9. └────────────────────────────────────────────────────────────────────────────┘
  10.  
  11. WOW! Many people work on that mod... Jeff Garzik was the first, i think, that
  12. as written such a mod. Followed by Bruce Guthrie #28 @2900, Life Arts Network
  13. Sysops 1@9443 (GRABNAME.MOD) and finnaly Vortex Rouge 1@5869 (VRNXTEN2.MOD)
  14.  
  15. I have made improvements over origional design, but the ideas present
  16. are esentially from them.
  17.  
  18. What I did was split the thing in two line, the first line is for the message
  19. Number and (net)name, the second line is for the message title, ( I hate to
  20. see half of a long title...hehe!) cosmetic change and bug killing. (sic!)
  21.  
  22. BUG: The name of the user was show if the post is from an -=> UNKNOWN <=-
  23.      user.  ( Repair in this version, of course! )
  24.  
  25. Note : Color codes can be change/added.
  26.       *! This modification is an update from 4.21a to 4.22 !*
  27.  
  28. Here we go:
  29. = - original
  30. + - add
  31.  
  32. Step one:  Back up your source  (Just in case, it ain't that hard anyway!)
  33.  
  34. Step two  LOAD FILE: Msgbase1.c
  35.           Beginning of Void Scan, change the following:
  36.  
  37. =  void scan(int msgnum, int optype, int *nextsub)
  38. =   {
  39. =    char s[81],s1[81],s2[81],*b,*ss1;
  40. =    int i,i1,i2,done,quit,abort,next,val,realexpress;
  41. =    slrec ss;
  42. +    userrec u;         /* add this line */
  43. =    long l,len;
  44. =    postrec p,p1;
  45.  
  46. Step three: search for case 1: /* List Titles */
  47.             delete the entire case... and block copy in this entire 
  48.             the replacement following : 
  49.  
  50. /* begin block read for SANTA01.422 */
  51.     case 1: /* List Titles */
  52.       i=0;
  53.       abort=0;
  54.       if (thisuser.sysstatus & sysstatus_clr_scrn)
  55.         outchr(12);
  56.       nl();
  57.       if (msgnum>=nummsgs)
  58.         abort=1;
  59.       while ((!abort) && (!hangup) && (++i<=10)) {
  60.         ++msgnum;
  61.         if (msgs[msgnum].qscan>qsc_p[curlsub])
  62.           strcpy(s,"* ");
  63.         else if (msgs[msgnum].status 
  64.                  & (status_pending_net | status_unvalidated))
  65.           strcpy(s,"- ");
  66.         else
  67.           strcpy(s,"  ");
  68.         if (msgnum<100)
  69.           strcat(s," ");
  70.         if (msgnum<10)
  71.           strcat(s," ");
  72.         itoa(msgnum,s2,10);
  73.         if ((msgs[msgnum].ownersys==0) && (msgs[msgnum].owneruser==usernum))
  74.           sprintf(s1,"6%s3[2%s3] ",s,s2);
  75.         else if (msgs[msgnum].ownersys!=0)
  76.           sprintf(s1,"6%s3<2%s3> ",s,s2);
  77.         else
  78.           sprintf(s1,"6%s3(2%s3) ",s,s2);
  79.         outstr(s1);
  80.         ss=syscfg.sl[thisuser.sl];
  81.         if ((msgs[msgnum].anony & anony_sender) 
  82.              && ((ss.ability & ability_read_post_anony)==0)) {
  83.           sprintf(s,"1-=> 2UNKNOWN 1<=-");
  84.           pl(s);
  85.         } else if (msgs[msgnum].ownersys==0) {
  86.           read_user(msgs[msgnum].owneruser,&u);
  87.           sprintf(s,"5%s",nam(&u,msgs[msgnum].owneruser));
  88.           pl(s);
  89.         } else {
  90.           grab_user_name(&(msgs[msgnum].msg),subboards[curlsub].filename);
  91.           sprintf(s,"3%s",net_email_name);
  92.           pl(s);
  93.         }
  94.         if ((msgs[msgnum].status&(status_unvalidated|status_delete))
  95.              &&(!lcs()))
  96.           sprintf(s,"        4<<< NOT VALIDATED YET >>>");
  97.         else
  98.           sprintf(s,"        0%s",msgs[msgnum].title);
  99.         pl(s);
  100.         if (msgnum>=nummsgs)
  101.           abort=1;
  102.       }
  103.       optype=0;
  104.       break;
  105. /* End Block Read for SANTA01.422 */
  106.  
  107. =            case 2: /* Read Message */
  108. =                if ((msgnum>0) && (msgnum<=nummsgs))
  109. =         read_message(msgnum,&next,&val);
  110.  
  111. Step 4: Re-compile.
  112.  
  113. That's it!  Voila!
  114.  
  115. Anyway...I garantee nothing. If you have problems installing this mod,
  116. you better run a plain WWIV system... cuz a monkey can do it! 
  117.  
  118. If you want to thank me, send your message at :
  119.  
  120.     Hammer's Dungeon (514)747-6088  3@5457  WWIVnet.
  121.  
  122.